<%@page import="cn.lily.com.enviroment.Enviroment"%>
<%@ page contentType="text/html; charset=utf-8" %>
<%@page import="cn.lily.com.db.DBFactory"%>
<%@page import="cn.lily.com.db.container.reader.DataTable"%>
<%@ page import="cn.lily.inst.web.frames.FrameConfig" %>
<%@ page import="cn.lily.web.util.context.WebContext" %>
<%@ page import="cn.lily.esb.context.AuthEntity" %>
<%@ include file="/frames/logbegin.jsp" %>
<%
String skinName = "";
String contextPath ="";
AuthEntity authEntity = (AuthEntity) session.getAttribute(WebContext.LOG_AUTH_CONTEXT);
if (authEntity != null) {
skinName      = authEntity.getSkinName();
contextPath = authEntity.getContextPath();
}
FrameConfig.setContextPath(contextPath);
DataTable appTable=DBFactory.getActionDB().executeQueryTable("SELECT count(*) as count FROM ${schema}.pw_oper o, ${schema}.pw_term_app_ver_comm a ,${schema}.app_info i  WHERE o.COMM_ID=a.COMM_ID AND a.APP_ID=i.APP_ID AND o.OPER_NO='"+authEntity.getOperatorId()+"'");
appTable.next();
%>
<%@ include file="/frames/logend.jsp" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title><%=FrameConfig.getAppName()%></title>
  <link href="<%=contextPath+FrameConfig.getStylePath()%>/strap/bootstrap.min.css" rel="stylesheet" media="screen">
  <link href="<%=FrameConfig.getCSSPath("app.css") %>" rel="stylesheet" />
  <link href="<%=contextPath+FrameConfig.getStylePath()%>/font-awesome/css/font-awesome.min.css" rel="stylesheet">

</head>
<body>
  <div id="main-left">
    <!-- <div class="topbar">
      <div class="input-append">
        <input class="span2" id="prependedInput" type="text" placeholder="������梅��煤��毛��陋碌����娄����">
        <span class="add-on"><i class="fa fa-search"></i></span>
      </div>
    </div> -->
    <ul class="menu-list">
      <li><i style="color:#3498DB;" class="fa fa-user"></i>我的应用(<%=appTable.getString("count")%>)</li>
    </ul>
    <div class="menu-line"></div>
    <ul class="menu-list">
      <li><i style="color:#E67E22;" class="fa fa-thumbs-o-up"></i>应用推荐</li>
      <li><i style="color:#9B59B6;" class="fa fa-shopping-cart"></i>应用商店</li>
    </ul> 
    <div class="menu-line"></div>
    <!-- ��������-->
  </div>
  <div id="main-right">
    <iframe src="applist.jsp" frameborder="0" height="100%" width="100%"></iframe>
  </div>

  <script src="<%=FrameConfig.getBaseJsUrl() %>/common/jquery-1.9.1.min.js"></script>
  <script src="<%=FrameConfig.getBaseJsUrl()%>/strap/bootstrap.min.js"></script>
  <script src="<%=FrameConfig.getJsUrl("app.js")%>"></script>
</body>
</html>

